//
//  MyCellItemModel.h
//  防MVVM
//
//  Created by lanou on 16/4/28.
//  Copyright © 2016年 范明星. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

//cell类型的枚举
typedef NS_ENUM(NSInteger, MyCellItemType) {
    MyCellItemTypeSystem,//正常的cell
    MyCellItemTypeSwitch,//带开关的cell
    
};
typedef void(^switchValueChange)(BOOL isOn);
typedef void(^ClickItemOperation)();
@interface MyCellItemModel : NSObject

@property (nonatomic, copy) NSString *itemName;//左边的文字
@property (nonatomic, strong) UIImage *itemImage;//左边的图
@property (nonatomic, copy) NSString *itemRightname;
@property (nonatomic, strong) UIImage *itemRightImage;

@property (nonatomic, copy) NSString *string;


//开关变化
//@property (nonatomic, copy) void(^switchValueChange)(BOOL isOn);
@property (nonatomic, copy) switchValueChange switchChange;

@property (nonatomic, copy) ClickItemOperation   clickItemOperation;//点击item执行的回调

//枚举用assign
@property (nonatomic, assign) MyCellItemType type;
@end
